package training02;

public class Farmer extends Role implements Attack,Treat{
    public Farmer() {
    }

    public Farmer(String name, int level) {
        super(name, level);
    }
    public void intro(){
        System.out.println("我是农民\n");
        super.intro();
    }
    public void mine(){
        System.out.println("我进行采矿");
    }
    @Override
    public void attack(Role role) {
        System.out.println("我是农民，我向" + role + "发起了攻击");
    }

    @Override
    public void treat(Role role) {
        System.out.println("我是农民，我治疗了" + role);
    }
}
